export const tableConfig = [
    { prop: "name", label: "文件名", minWidth: "140", slotName: "name" },
    { prop: "updateTime", label: "修改时间", minWidth: "140" },
    { label: "操作", minWidth: "140", slotName: "operate", fixed: "right" }
];
export const formConfig = [
    { formType: "input", type: "text", formName: "name", labelName: "文件名称", placeholder: "请输入文件名称" },
    { formType: "dataPicker", type: "daterange", formName: "time", labelName: "修改日期", placeholder: "请选择修改日期" }
];
export function getDate(date, dates) {
    var dd = new Date(date);
    var n = dates || 0;
    dd.setDate(dd.getDate() + n);
    var y = dd.getFullYear();
    var m = dd.getMonth() + 1;
    var d = dd.getDate();
    m = m < 10 ? "0" + m : m;
    d = d < 10 ? "0" + d : d;
    var day = y + "-" + m + "-" + d;
    return day;
}
